from djitellopy import Tello
import cv2
import numpy as np
import time
from time import sleep
import threading

def main():
    tello = Tello()
    tello.connect()
    tello.takeoff()

    # tello.move_up(10)
    tello.move_forward(230)

    tello.move_up(30)

    tello.move_forward(150)

    tello.move_down(40)

    tello.move_forward(100)

    tello.move_left(170)

    tello.land()

if __name__ == "__main__":
    main()